Optimal. Leaf size=119 \[ -\frac {4 \sqrt {2} a^{5/2} \tanh ^{-1}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{d}+\frac {4 a^2 \sqrt {a+i a \tan (c+d x)}}{d}+\frac {2 a (a+i a \tan (c+d x))^{3/2}}{3 d}+\frac {2 (a+i a \tan (c+d x))^{5/2}}{5 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.10, antiderivative size = 119, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {3527, 3478, 3480, 206} \[ \frac {4 a^2 \sqrt {a+i a \tan (c+d x)}}{d}-\frac {4 \sqrt {2} a^{5/2} \tanh ^{-1}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{d}+\frac {2 a (a+i a \tan (c+d x))^{3/2}}{3 d}+\frac {2 (a+i a \tan (c+d x))^{5/2}}{5 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 3478
Rule 3480
Rule 3527
Rubi steps
\begin {align*} \int \tan (c+d x) (a+i a \tan (c+d x))^{5/2} \, dx &=\frac {2 (a+i a \tan (c+d x))^{5/2}}{5 d}-i \int (a+i a \tan (c+d x))^{5/2} \, dx\\ &=\frac {2 a (a+i a \tan (c+d x))^{3/2}}{3 d}+\frac {2 (a+i a \tan (c+d x))^{5/2}}{5 d}-(2 i a) \int (a+i a \tan (c+d x))^{3/2} \, dx\\ &=\frac {4 a^2 \sqrt {a+i a \tan (c+d x)}}{d}+\frac {2 a (a+i a \tan (c+d x))^{3/2}}{3 d}+\frac {2 (a+i a \tan (c+d x))^{5/2}}{5 d}-\left (4 i a^2\right ) \int \sqrt {a+i a \tan (c+d x)} \, dx\\ &=\frac {4 a^2 \sqrt {a+i a \tan (c+d x)}}{d}+\frac {2 a (a+i a \tan (c+d x))^{3/2}}{3 d}+\frac {2 (a+i a \tan (c+d x))^{5/2}}{5 d}-\frac {\left (8 a^3\right ) \operatorname {Subst}\left (\int \frac {1}{2 a-x^2} \, dx,x,\sqrt {a+i a \tan (c+d x)}\right )}{d}\\ &=-\frac {4 \sqrt {2} a^{5/2} \tanh ^{-1}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{d}+\frac {4 a^2 \sqrt {a+i a \tan (c+d x)}}{d}+\frac {2 a (a+i a \tan (c+d x))^{3/2}}{3 d}+\frac {2 (a+i a \tan (c+d x))^{5/2}}{5 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 1.28, size = 154, normalized size = 1.29 \[ \frac {a^2 e^{-i (c+2 d x)} \sqrt {1+e^{2 i (c+d x)}} \sqrt {\frac {a e^{2 i (c+d x)}}{1+e^{2 i (c+d x)}}} (\cos (d x)+i \sin (d x)) \left (\sqrt {1+e^{2 i (c+d x)}} \sec ^3(c+d x) (11 i \sin (2 (c+d x))+41 \cos (2 (c+d x))+35)-120 \sinh ^{-1}\left (e^{i (c+d x)}\right )\right )}{15 \sqrt {2} d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.44, size = 312, normalized size = 2.62 \[ -\frac {2 \, {\left (15 \, \sqrt {2} \sqrt {\frac {a^{5}}{d^{2}}} {\left (d e^{\left (4 i \, d x + 4 i \, c\right )} + 2 \, d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )} \log \left (\frac {4 \, {\left (a^{3} e^{\left (i \, d x + i \, c\right )} + \sqrt {\frac {a^{5}}{d^{2}}} {\left (d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}\right )} e^{\left (-i \, d x - i \, c\right )}}{a^{2}}\right ) - 15 \, \sqrt {2} \sqrt {\frac {a^{5}}{d^{2}}} {\left (d e^{\left (4 i \, d x + 4 i \, c\right )} + 2 \, d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )} \log \left (\frac {4 \, {\left (a^{3} e^{\left (i \, d x + i \, c\right )} - \sqrt {\frac {a^{5}}{d^{2}}} {\left (d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}\right )} e^{\left (-i \, d x - i \, c\right )}}{a^{2}}\right ) - 2 \, \sqrt {2} {\left (26 \, a^{2} e^{\left (5 i \, d x + 5 i \, c\right )} + 35 \, a^{2} e^{\left (3 i \, d x + 3 i \, c\right )} + 15 \, a^{2} e^{\left (i \, d x + i \, c\right )}\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}\right )}}{15 \, {\left (d e^{\left (4 i \, d x + 4 i \, c\right )} + 2 \, d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {5}{2}} \tan \left (d x + c\right )\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.14, size = 89, normalized size = 0.75 \[ \frac {\frac {2 \left (a +i a \tan \left (d x +c \right )\right )^{\frac {5}{2}}}{5}+\frac {2 \left (a +i a \tan \left (d x +c \right )\right )^{\frac {3}{2}} a}{3}+4 a^{2} \sqrt {a +i a \tan \left (d x +c \right )}-4 a^{\frac {5}{2}} \sqrt {2}\, \arctanh \left (\frac {\sqrt {a +i a \tan \left (d x +c \right )}\, \sqrt {2}}{2 \sqrt {a}}\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.59, size = 120, normalized size = 1.01 \[ \frac {2 \, {\left (15 \, \sqrt {2} a^{\frac {9}{2}} \log \left (-\frac {\sqrt {2} \sqrt {a} - \sqrt {i \, a \tan \left (d x + c\right ) + a}}{\sqrt {2} \sqrt {a} + \sqrt {i \, a \tan \left (d x + c\right ) + a}}\right ) + 3 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {5}{2}} a^{2} + 5 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {3}{2}} a^{3} + 30 \, \sqrt {i \, a \tan \left (d x + c\right ) + a} a^{4}\right )}}{15 \, a^{2} d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.32, size = 98, normalized size = 0.82 \[ \frac {2\,{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^{5/2}}{5\,d}+\frac {4\,a^2\,\sqrt {a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}}}{d}+\frac {2\,a\,{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^{3/2}}{3\,d}+\frac {\sqrt {2}\,a^{5/2}\,\mathrm {atan}\left (\frac {\sqrt {2}\,\sqrt {a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2\,\sqrt {a}}\right )\,4{}\mathrm {i}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (i a \left (\tan {\left (c + d x \right )} - i\right )\right )^{\frac {5}{2}} \tan {\left (c + d x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________